/* 
	
*/
import {UPDATE_COLLAPSED} from '../constant'

const initState = false //初始化状态
export default function countReducer(preState=initState,action){
	//从action对象中获取：type、data
	const {type,data} = action
	//根据type决定如何加工数据
	switch (type) {
		case UPDATE_COLLAPSED: // 修改
			return !preState

		default:
			return preState
	}
}